package com.depay;

import com.example.merchantdemo.paymentstart.controller.PaymentStartController;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.depay.mapper.*;

@Component
public class MainDispatcher {

    private static final Logger logger = LoggerFactory.getLogger(MainDispatcher.class);

    private UserInfoMapper userInfoMapper;

    public MainDispatcher(UserInfoMapper userInfoMapper){
        //
        this.userInfoMapper = userInfoMapper;
    }

    @Scheduled(fixedRate = 15000)
    public void run() throws Exception {
        System.out.println("test");
        logger.info("test");
    }
}
